package com.zretc.entity;

import org.springframework.stereotype.Component;

@Component
public class Collect {
    //收藏id
    private String collectId;
    //关联用户对象
    private Account account;
    //关联影院对象
    private Cinema cinema;
    //关联影片对象
    private Movie movie;

    public Collect() {
    }

    public Collect(String collectId, Account account, Cinema cinema, Movie movie) {
        this.collectId = collectId;
        this.account = account;
        this.cinema = cinema;
        this.movie = movie;
    }

    public String getCollectId() {
        return collectId;
    }

    public void setCollectId(String collectId) {
        this.collectId = collectId;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Cinema getCinema() {
        return cinema;
    }

    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "collectId='" + collectId + '\'' +
                ", account=" + account +
                ", cinema=" + cinema +
                ", movie=" + movie +
                '}';
    }
}
